package alp.starcode.edms.manage.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Min;

/**
 * 专家库数据传输对象
 *
 * @author liwang
 * 2023-08-14 09:18
 **/
@Data
@ApiModel(description = "专家库数据传输对象")
public class ExpertLibraryDto {

    @ApiModelProperty(value = "专家库ID,新增操作不需要传参", example = "1234567890")
    private String expertLibraryId;

    @NotBlank(message = "专家库名称不能为空")
    @ApiModelProperty(value = "专家库名称", required = true, example = "计算机科学专家库")
    private String expertLibraryName;

    @NotNull(message = "管理员数量上限不能为空")
    @Min(value = 1, message = "管理员数量上限必须大于0")
    @ApiModelProperty(value = "管理员数量上限", required = true, example = "10")
    private Integer adminLimit;

    @ApiModelProperty(value = "专家库描述", example = "计算机科学领域的专家库，包含算法、人工智能等方向的专家")
    private String description;
} 